/*
 * @Description:
 * @Date: 2024-09-13 14:51:47
 * @LastEditTime: 2024-10-16 11:19:02
 */
import { http } from '@/utils/http'
// 获得所有鲜果分页
export const getfreshFruitPage = (data) => {
  return http({
    url: '/app-api/countryside/fresh_fruit/page',
    method: 'POST',
    data,
  })
}
// 获得我的鲜果分页
export const getfreshFruitMyPage = (data, query) => {
  return http({
    url: '/app-api/countryside/fresh_fruit/pageMy',
    method: 'POST',
    data,
    query,
  })
}
// 获得鲜果详情
export const getfreshFruitdetail = (id) => {
  return http({
    url: '/app-api/countryside/fresh_fruit/get?id=' + id,
    method: 'GET',
  })
}

// 创建鲜果
export const ceratefreshFruit = (data) => {
  return http({
    url: `/app-api/countryside/fresh_fruit/create`,
    method: 'POST',
    data,
  })
}

// 更新鲜果
export const updatefreshFruit = (data) => {
  return http({
    url: `/app-api/countryside/fresh_fruit/update`,
    method: 'PUT',
    data,
  })
}
// 删除鲜果
export const deletefreshFruit = (query) => {
  return http({
    url: '/app-api/countryside/fresh_fruit/delete',
    method: 'DELETE',
    query,
  })
}
// 点赞分享
export const sharefreshFruit = (query) => {
  return http({
    url: `/app-api/countryside/fresh_fruit/share`,
    method: 'PUT',
    query,
  })
}
export const illegalTextVerife = (query) => {
  return http({
    url: `/app-api/system/auth/weixin-illegalTextVerife`,
    method: 'GET',
    query,
  })
}
